/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package client;

/**
 *
 * @author alfiansyah
 */
public class FileProp {
    private String filename;
    private String filepath;
    private long lastmod;

    public FileProp(){

    }

    public FileProp(String fname, String fpath, long flast){
        this.filename = fname;
        this.filepath = fpath;
        this.lastmod = flast;
    }

    public String getFileName(){
        return this.filename;
    }

    public String getFilePath(){
        return this.filepath;
    }

    public long getLastMod(){
        return this.lastmod;
    }

    public void setFileName(String file){
        this.filename = file;
    }

    public void setFilePath(String path){
        this.filepath = path;
    }

    public void setLastMod(long last){
        this.lastmod = last;
    }

    public String convertToStringInfoFile(){
        String s = "";
        s = filename + "|" + filepath + "|" + lastmod + "\n";
        return s;
    }

}
